package chixing.day07_inherited.HomeWork;

public class FullTimeEmployee extends MyEmployee {
    private double awardSalary;
    public void calculateSalary(){
        System.out.println("总工资="+getEmpBaseSalary()+awardSalary);
    }

    public FullTimeEmployee(double awardSalary) {
        this.awardSalary = awardSalary;
    }

    public FullTimeEmployee(String empNo, String empName, double empBaseSalary, double awardSalary) {
        super(empNo, empName, empBaseSalary);
        this.awardSalary = awardSalary;
    }

    public double getAwardSalary() {
        return awardSalary;
    }

    public void setAwardSalary(double awardSalary) {
        this.awardSalary = awardSalary;
    }

    @Override
    public String toString() {
        return "FullTimeEmployee{" +
                "awardSalary=" + awardSalary +
                "} " + super.toString();
    }
}
